package com.wulian.dao;

import com.wulian.entities.Doctor;
import com.wulian.entities.Patient;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorDao {
    List<Doctor> selAllDoctor();//查看医院所有医生
    Doctor selDocById(Long doctor_id);//通过医生id查看医生
    Integer loginDoctor(Doctor doctor);//登录
    void updateDoctor(Doctor doctor);//医生信息修改
    void addDoctor(Doctor doctor);
    List<Patient> getPatientByDocName(String name);//查看医生下的所有病人
    List<Doctor> getAllByPage(@Param("pageNum")Integer num, @Param("pageSize")Integer size);
}
